package com.jiazhong.mingxing.boot.boot01;

import com.jiazhong.mingxing.boot.boot01.component.DemoA;
import com.jiazhong.mingxing.boot.boot01.component.Student3;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@Slf4j
// 设置当前类是boot的启动类
@SpringBootApplication
public class Boot01Application {
    public static void main(String[] args) {
        // 启动它
        ConfigurableApplicationContext context = SpringApplication.run(Boot01Application.class, args);
        Student3 stu = context.getBean(Student3.class);
        log.info("stu:{}", stu);
    }
}